export const login = (state: any = null, action: any ) => {
    switch (action.type) {
        case 'INCREMENT':
            return {num: state.num + action.count}
        case 'REDUCE':
            return {num: state.num - action.count}
        default:
            return state
    }
}